package com.gzx.plugin.tjzy.modular.sms.template.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.gzx.plugin.tjzy.modular.sms.template.entity.GzxSmsTemplate;
import com.gzx.plugin.tjzy.modular.sms.template.mapper.GzxSmsTemplateMapper;
import com.gzx.plugin.tjzy.modular.sms.template.service.GzxSmsTemplateListService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zjt
 * @description
 * @date 2025/3/7 13:45
 */
@Service
@DS("sms")
@RequiredArgsConstructor
public class GzxSmsTemplateListServiceImpl implements GzxSmsTemplateListService {

    private final GzxSmsTemplateMapper smsTemplateMapper;

    /**
     * 获取所有短信模版
     *
     * @return
     */
    @Override
    public List<GzxSmsTemplate> listAll() {
        return smsTemplateMapper.selectList();
    }
}
